package com.txz.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.txz.common.annotation.Excel;
import com.txz.common.core.domain.BaseEntity;

/**
 * 商品对象 zcn_goods
 * 
 * @author tuxiaozhuo
 * @date 2025-10-18
 */
public class ZcnGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品分类ID，关联zcn_category表的id字段 */
    @Excel(name = "商品分类ID，关联zcn_category表的id字段")
    private Long categoryId;

    /** 商品品牌ID，关联zcn_brand表的id字段 */
    @Excel(name = "商品品牌ID，关联zcn_brand表的id字段")
    private Long brandId;

    /** 商品售价 */
    @Excel(name = "商品售价")
    private BigDecimal price;

    /** 会员价格，为空时使用商品售价 */
    @Excel(name = "会员价格，为空时使用商品售价")
    private BigDecimal memberPrice;

    /** 商品状态：0=禁用，1=启用 */
    @Excel(name = "商品状态：0=禁用，1=启用")
    private Long status;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 商品规格信息，JSON格式存储（如{颜色:红色,尺寸:XL}） */
    @Excel(name = "商品规格信息，JSON格式存储", readConverterExp = "如={颜色:红色,尺寸:XL}")
    private String goodsSpec;

    /** 商品主图URL，可空 */
    @Excel(name = "商品主图URL，可空")
    private String image;

    /** 商品标签，多个标签用逗号分隔（如：新品,热销,包邮） */
    @Excel(name = "商品标签，多个标签用逗号分隔", readConverterExp = "如=：新品,热销,包邮")
    private String tags;

    /** 操作人昵称，记录最后操作该商品的用户昵称 */
    @Excel(name = "操作人昵称，记录最后操作该商品的用户昵称")
    private String operatorName;

    /** 逻辑删除：0=未删，1=已删 */
    @Excel(name = "逻辑删除：0=未删，1=已删")
    private Long isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setBrandId(Long brandId) 
    {
        this.brandId = brandId;
    }

    public Long getBrandId() 
    {
        return brandId;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setMemberPrice(BigDecimal memberPrice) 
    {
        this.memberPrice = memberPrice;
    }

    public BigDecimal getMemberPrice() 
    {
        return memberPrice;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setGoodsSpec(String goodsSpec) 
    {
        this.goodsSpec = goodsSpec;
    }

    public String getGoodsSpec() 
    {
        return goodsSpec;
    }

    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }

    public void setOperatorName(String operatorName) 
    {
        this.operatorName = operatorName;
    }

    public String getOperatorName() 
    {
        return operatorName;
    }

    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("categoryId", getCategoryId())
            .append("brandId", getBrandId())
            .append("price", getPrice())
            .append("memberPrice", getMemberPrice())
            .append("status", getStatus())
            .append("description", getDescription())
            .append("goodsSpec", getGoodsSpec())
            .append("image", getImage())
            .append("tags", getTags())
            .append("operatorName", getOperatorName())
            .append("isDeleted", getIsDeleted())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
